FROM centos:7
MAINTAINER luoqiz
WORKDIR /
RUN mkdir -p /soft/phantomjs-2.1.1 && mkdir -p /soft/echartsconvert && yum provides '*/applydeltarpm' && yum install deltarpm libXext libXrender fontconfig freetype libfreetype.so.6 libfontconfig.so.1 -y
ADD ./phantomjs-2.1.1-linux-x86_64 /soft/phantomjs-2.1.1
ADD ./echartsconvert	/soft/echartsconvert
EXPOSE 8989
ENTRYPOINT ["/soft/phantomjs-2.1.1/bin/phantomjs","/soft/echartsconvert/echarts-convert.js","-s","-p","8989"]
